﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dycox.ComponentModel
{
    public interface IAuthenticationService
    {
        AuthenticationResult SignIn(string username, string password);
        void SignOut();
        IUser CurrentUser { get; }
        bool ValidatePassword(string username, string password);
        AuthenticationResult TestPermission(string permission);
        void Authenticate(string permission);
    }
}
